<html>
<head><meta charset="utf-8"><title>Configs and cargo invocations with &#x27;--manifest path&#x27; · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Configs.20and.20cargo.20invocations.20with.20&#x27;--manifest.20path&#x27;.html">Configs and cargo invocations with &#x27;--manifest path&#x27;</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209486133"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Configs%20and%20cargo%20invocations%20with%20%27--manifest%20path%27/near/209486133" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Robin Randhawa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Configs.20and.20cargo.20invocations.20with.20&#x27;--manifest.20path&#x27;.html#209486133">(Sep 09 2020 at 08:51)</a>:</h4>
<p>I have a cargo binary project directory containing custom cargo directives in a <code>.cargo/config</code> dir within. While the project builds fine as expected when cargo is invoked from within, I find that invoking a build from 'outside' the project directory using the '--manifest-path' directive ignores the customisations in the <code>.cargo/config</code>. FWIW the customisations are a <code>[build]</code> section to define the intended target to build for as well as target specific <code>rustflags</code>.  I thought I'd ask if this is expected behaviour before digging further. Any pointers appreciated! Thanks.</p>



<a name="209486232"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Configs%20and%20cargo%20invocations%20with%20%27--manifest%20path%27/near/209486232" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Configs.20and.20cargo.20invocations.20with.20&#x27;--manifest.20path&#x27;.html#209486232">(Sep 09 2020 at 08:52)</a>:</h4>
<p>I believe <span class="user-mention silent" data-user-id="121929">Philipp Oppermann</span> already opened an issue about this. Let me search.</p>



<a name="209486366"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Configs%20and%20cargo%20invocations%20with%20%27--manifest%20path%27/near/209486366" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Configs.20and.20cargo.20invocations.20with.20&#x27;--manifest.20path&#x27;.html#209486366">(Sep 09 2020 at 08:54)</a>:</h4>
<p>Nope, it was the other direction: <a href="https://github.com/rust-lang/cargo/issues/created_by/phil-opp">https://github.com/rust-lang/cargo/issues/created_by/phil-opp</a></p>



<a name="209486399"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Configs%20and%20cargo%20invocations%20with%20%27--manifest%20path%27/near/209486399" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Robin Randhawa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Configs.20and.20cargo.20invocations.20with.20&#x27;--manifest.20path&#x27;.html#209486399">(Sep 09 2020 at 08:55)</a>:</h4>
<p>Thanks <span class="user-mention" data-user-id="133247">@bjorn3</span> .</p>



<a name="209486447"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Configs%20and%20cargo%20invocations%20with%20%27--manifest%20path%27/near/209486447" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Robin Randhawa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Configs.20and.20cargo.20invocations.20with.20&#x27;--manifest.20path&#x27;.html#209486447">(Sep 09 2020 at 08:55)</a>:</h4>
<p>Would filing an issue for this be the way to go ? Happy to.</p>



<a name="209486529"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Configs%20and%20cargo%20invocations%20with%20%27--manifest%20path%27/near/209486529" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Configs.20and.20cargo.20invocations.20with.20&#x27;--manifest.20path&#x27;.html#209486529">(Sep 09 2020 at 08:56)</a>:</h4>
<p>I found it anyway. It was a thread on <a href="http://internals.rust-lang.org">internals.rust-lang.org</a>: <a href="https://internals.rust-lang.org/t/problems-of-cargo-config-files-and-possible-solutions/12987">https://internals.rust-lang.org/t/problems-of-cargo-config-files-and-possible-solutions/12987</a></p>



<a name="209486558"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Configs%20and%20cargo%20invocations%20with%20%27--manifest%20path%27/near/209486558" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Robin Randhawa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Configs.20and.20cargo.20invocations.20with.20&#x27;--manifest.20path&#x27;.html#209486558">(Sep 09 2020 at 08:56)</a>:</h4>
<p>That's pretty much it!</p>



<a name="209486576"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Configs%20and%20cargo%20invocations%20with%20%27--manifest%20path%27/near/209486576" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Robin Randhawa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Configs.20and.20cargo.20invocations.20with.20&#x27;--manifest.20path&#x27;.html#209486576">(Sep 09 2020 at 08:56)</a>:</h4>
<p>I'll bind myself to it then.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>